#ifndef BTFORM_H
#define BTFORM_H

#include <QWidget>
#include <QPropertyAnimation>
namespace Ui {
class btForm;
}

class btForm : public QWidget
{
    Q_OBJECT

public:
    explicit btForm(QWidget *parent = nullptr);
    ~btForm();

    void setIconandText(const QString &btIcon,const QString &btText,int pageId);
    int getPageId() const;
    void clearBackground();
    void FirstShow(bool isShow);
signals:
    void btClick(int id);
protected:
    void mousePressEvent(QMouseEvent *event) override;
private:
    Ui::btForm *ui;
    int pageId;
    QPropertyAnimation* line1Animal;
    QPropertyAnimation* line2Animal;
    QPropertyAnimation* line3Animal;
    QPropertyAnimation* line4Animal;

};

#endif // BTFORM_H
